Skip to content

修改订单金额

完结订单总金额与实际金额不符时,可通过该接口修改订单金额。**前置条件:**服务订单支付状态为待支付 官方文档 官方文档

js
wxpay
.
v3
.
payscore
.
serviceorder
.
_out_order_no_
.
modify
.
post
({
appid
,
service_id
,
post_payments
,
post_discounts
,
total_amount
,
reason
,
}) .
then
(
({
data
: {
out_order_no
,
service_id
,
appid
,
mchid
,
service_introduction
,
state
,
state_description
,
post_payments
,
post_discounts
,
risk_fund
,
total_amount
,
need_collection
,
collection
,
time_range
,
location
,
attach
,
notify_url
,
order_id
,
}, }) => ({
out_order_no
,
service_id
,
appid
,
mchid
,
service_introduction
,
state
,
state_description
,
post_payments
,
post_discounts
,
risk_fund
,
total_amount
,
need_collection
,
collection
,
time_range
,
location
,
attach
,
notify_url
,
order_id
,
}) )

Released under the MIT License. (SITEMAP)